﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true" CodeBehind="ResourceRequestApplyTree.aspx.cs" Inherits="Web.Views.ResourceRequestManage.ResourceRequestTree" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    $(function () {
        //加载公司通讯录Tree
        var timestamp = new Date().getTime();
        $('#treeArchiveMenu').tree({
            method: "get",
            lines: true,
            idFiled: "id",
            textFiled: "text",
            parentField: "pid",
            cascadeCheck: false,
            url: "../SingleWellManage/SingleWellTreeHandler.ashx?archivemenu=yes&timestamp=" + timestamp + "",
            onBeforeExpand: function (node, param) {
            },
            onLoadSuccess: function (node, data) {
                window.parent.document.getElementById('Iframe1').src = "../SystemLogin/loadingpage.aspx?Menu_URL=../ResourceRequestManage/ResourceRequestWellList.aspx?wellType="+data[0].children[0].children[0].id;
            },
            onSelect: function (node) {
                if ($('#treeArchiveMenu').tree('isLeaf', node.target)) {
                    window.parent.document.getElementById('Iframe1').src = "../SystemLogin/loadingpage.aspx?Menu_URL=../ResourceRequestManage/ResourceRequestWellList.aspx?wellType=" + node.id;
                }
            }
        });
    });
  </script> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul id="treeArchiveMenu"></ul>
</asp:Content>
